export const isKey = (key: string | number, object: object):key is keyof typeof object =>key in object